package com.ego.member.oauth2;

import com.alipay.api.AlipayApiException;
import com.ego.common.to.member.MemberTo;
import javax.servlet.http.HttpServletRequest;

/**
 * @program: ego
 * @description: Oauth2服务
 * @author: KamTang
 * @create: 2022-12-15 14:03
 **/
public interface Oauth2 {

    /**
     * Oauth2登录
     * @param request 请求——用于获取凭证
     * @return 凭证
     * @throws AlipayApiException 支付宝异常
     */
    MemberTo oauth2Login(HttpServletRequest request) throws AlipayApiException;

}
